<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimum-scale=1.0">
    <title>媒体查询</title>
    <style>
        /* 媒体查询 */
        /* 关键字： and(且) not（排除某个属性） only  */
        @media screen and (min-width: 320px) {
            body {
                background-color: red;
            }
        }

        @media screen and (min-width: 600px) {
            body {
                background-color: yellow;
            }
        }

        @media screen and (min-width: 800px) {
            body {
                background-color: blue;
            }
        }
    </style>
</head>

<body>

</body>

</html>